<!--header-->
<link rel="stylesheet" href="/ceca_two/css/costShareOne.css" />
<link rel="stylesheet" href="/ceca_two/css/municipalShareOne.css" />
<!--# include virtual="/ceca_two/common/html/header.html"-->
<!--# include virtual="/ceca_two/modules/costnorm/base/costShare.html"-->	
		<h1 class="shareName">工程概况</h1>
		<div class="explain">填写说明：以下内容均为必填项，若本项目无此项内容请填写“无”。</div>
		<table class="shareTable" id="munTable">
			<tr>
				<td>序号</td>
				<td class="munTableTd">项目名称</td>
				<td>属性值</td>
				<td style="color: #fff;">备注</td>
			</tr>
			<tr>
				<td>1</td>
				<td class="munTableTd">工程名称</td>
				<td>
					<input type="text" name="" id="costName" value="" class="gcmc" id="" />
				</td>
				<td>备注</td>
			</tr>
			<tr>
				<td class="xh">2</td>
				<td>工程用途</td>
				<td  class="property proL" id="catalog">
					<div class="classify">
						<span>请选择</span>
						<ul class="classifyList"></ul>
					</div>
					<div class="classify"  style="display: none;" >
						<span>请选择</span>
						<ul class="classifyList"></ul>
					</div>
					<div class="classify" style="display: none;">
						<span>请选择</span>
						<ul class="classifyList"></ul>
					</div>
				</td>
				<td>备注</td>
			</tr>
			<tr>
				<td class="xh">3</td>
				<td>工程地点</td>
				<td  class="property">
					<div class="classify site" id="city">
						<span>请选择省市</span>
						<ul class="classifyList classifyListArea">
							
						</ul>
					</div>
					<div class="classify site" style="border: none;" id="any">
						<span>全部</span>
						<ul class="classifyList classifyListArea"></ul>
					</div>
				</td>
				<td>备注</td>
			</tr>
			<tr>
				<td>4</td>
				<td class="munTableTd">计价方式</td>
				<td>
					<div class="classify nature" style="border: none;">
						<span id="valuation">请选择</span>
						<ul class="classifyList">
							<li>清单计价</li>
							<li>定额计价</li>
						</ul>
					</div>
				</td>
				<td>备注</td>
			</tr>
			<tr>
				<td>5</td>
				<td class="munTableTd">业务范围</td>
				<td>
					<div class="classify nature" style="border: none;">
						<span id="cost">请选择</span>
						<ul class="classifyList">
							<li>招标控制价</li>
							<li>标底价</li>
							<li>投标价</li>
							<li>合同价</li>
							<li>结算价</li>
							<li>设计概算</li>
							<li>施工图预算</li>
							<li>竣工决算</li>
						</ul>
					</div>
				</td>
				<td>备注</td>
			</tr>
			<tr>
				<td rowspan="4">6</td>
				<td><span class="level"></span>计价依据</td>
				<td></td>
				<td rowspan="4">备注</td>
			</tr>
			<tr>
				<td>清单依据</td>
				<td>
					<div class="classify nature" style="border: none;">
						<span id="norm">请选择</span>
						<ul class="classifyList" style="color: #333;">
							<li>2003版清单计价规范</li>
							<li>2013版清单计价规范</li>
							<li>2018版清单计价规范</li>
						</ul>
					</div>
				</td>
			</tr>
			<tr>
				<td>定额依据</td>
				<td>
					<input type="text" name="" id="quota" value="" class="areaInp"/>
				</td>
			</tr>
			<tr>
				<td>信息价依据</td>
				<td>
					<input type="text" name="" id="informationPrice" value="" class="areaInp"/>
				</td>
			</tr>
			<tr>
				<td>7</td>
				<td class="munTableTd">计价日期</td>
				<td>
					<div class="layui-input-block" style="margin-left: 0px">
  						<input class="layui-input" id="infoData" onclick="layui.laydate({elem: this, festival: true})" placeholder="选择日期" style="border: none;cursor: pointer;">
					</div>
				</td>
				<td>备注</td>
			</tr>
		</table>
		<div class="shareCostBtn">
			<div class="saveBtn">
				<a href="">保存</a>
			</div>
			<div class="nextBtn" id="nextBtn">
				<a>下一步</a>
			</div>
		</div>
	</div>
</div>

<!--底部-->
<!--# include virtual="/ceca_two/common/html/footer.html"-->
</body>
</html>
<script type="text/javascript">
	layui.use(['laydate','civicismone','sharecity'], function(){
		
	})
</script>
<script src="/ceca_two/js/costnorm/shareCity.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
//	var arr = ["道路工程","桥梁工程","轨道交通","园林绿化"];
//	$(".classify").on("click",function (){
//		$(this).find(".classifyList").toggle();
//	})
//	
//	$(".classifyList li").on("click",function (){
//		$(this).parent().prev("span").html($(this).html())
//	})
	
	
	$("#nextBtn").on("click",function (){
		var second,third ;
		
			
		for (i = 0 ; i < $("#catalog>div").length ; i++) {
			
			if ( $("#catalog>div").eq(i).is(":hidden") === false ) {
				
				i === 1 ? second = $("#catalog>div").eq(1).find("span").html() : "" ;
				i === 2 ? third = $("#catalog>div").eq(2).find("span").html(): "" ;
				
			}
		}
		third === undefined ? third = "" : "" ;
		var data = {
			arrangement : $(".shareUnit").html(),
			projectName : $("#costName").val(),	//工程名称
			costName : $("#costName").val(),	//工程名称
			catalogId : $("#catalog").attr("data-catalogId"),	//工程分类
			catalogSecond : second,	//工程分类
			catalogThird : third,	//工程分类
			address : $("#city span").eq(0).html()+$("#any span").eq(0).html(),   //工程地点
			address1 : $("#city span").eq(0).html(),   //工程地点
			address2 : $("#any span").eq(0).html(),   //工程地点

			valuation : $("#valuation").html(),	//	计价方式

			cost : $("#cost").html(),//	造价
			costType : $("#cost").html(),//	业务范围
			
			//计价依据
			norm : $("#norm").html(),
   			quota : $("#quota").val(),
   			informationPrice : $("#informationPrice").val(),

   			infoData : $("#infoData").val(),	//计价日期
		}
		
		$.ajax({
			type:"post",
			url:"/guidance_service/front/costIndex/add.do",
			data:data,
			success:function (result){
				

				window.location.href = "/ceca_two/modules/share/civicism/two.html?costId="+result.data.costId+"&catalogId"+result.data.catalogId
			},error:function (){
				
			}
		});
		
		
//		
	})
	
	
</script>